package com.example.javasystem.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

// 内部表
@Data
@TableName(value = "internal_table")
public class ITable {
    @TableId(type = IdType.AUTO) // 自增主键
    @TableField(value = "id")
    private Long id;
    @TableField(value = "timestamp")
    private Date timestamp;
    @TableField(value = "tank_number")
    private Integer tankNumber;
    @TableField(value = "temperature")
    private BigDecimal temperature;
    @TableField(value = "ph_value")
    private BigDecimal phValue;
    @TableField(value = "acetic_acid")
    private BigDecimal aceticAcid;
    @TableField(value = "alcohol")
    private BigDecimal alcohol;
    @TableField(value = "abnormal_num")
    private boolean abnormalNum = false; // 1表示该数据异常, 0表示该数据正常
}
